import * as actionTypes from '../configActions/userinfo'
const initState  = {}

 function userinfo(state = initState,action){
    switch(action.type){
        case actionTypes.USER_LOGIN:
            return action.data;
        default:
            return state
    }
}
 function setobj(state = initState,action){
    switch(action.type){
        case actionTypes.USER_SETOBJ:
            return action.data;
        default:
            return state
    }
}
 function setpath(state = initState,action){
    switch(action.type){
        case actionTypes.USER_SETPATH:
            return action.data;
        default:
            return state
    }
}
export { userinfo,setobj,setpath }